package com.greatmay.service.impl;

import java.util.List;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.greatmay.dao.HtmlElementDao;
import com.greatmay.model.HtmlElement;
import com.greatmay.service.HtmlElementService;


/**
 * Implementation of UserManager interface.
 *
 * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
 */
@Service("htmlElementService")
@WebService
public class HtmlElementServiceImpl extends GenericManagerImpl<HtmlElement, String> implements HtmlElementService {
    @Autowired
    public HtmlElementServiceImpl(HtmlElementDao dao) {
        this.dao = dao;
    }
    @Override
    public List<HtmlElement> loadAll() {
        List<HtmlElement> result = this.dao.getAll();
        log.debug(result);
        return result;
    }
}
